<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>创建</title>
    <link th:href="@{/static/bootstrap/css/bootstrap.min.css}" rel="stylesheet">
</head>
<body>
<div class="container main">
    <form action="/product/create" method="post" >
        <div class="form-group">
            <label for="name" class="control-label">名称:</label>
            <input type="text" class="form-control" id="name" name="name" required="required"
                   oninvalid="setCustomValidity('请输入商品名称！');" oninput="setCustomValidity('');">
        </div>
        <div class="form-group">
            <label for="price" class="control-label">价格:</label>
            <input type="number" class="form-control" id="price" name="price" required="required"
                   oninvalid="setCustomValidity('请输入价格！');" oninput="setCustomValidity('');">
        </div>

        <div class="form-group">
            <input class="btn btn-primary" type="submit" value="提交">
        </div>
    </form>

</div>

</body>
</html>